
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>STM32串口 · STM32HAL系列教程</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="Atonidas">
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-back-to-top-button/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search-pro/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-theme-lou/lou.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="串口发送及中断接收.html" />
    
    
    <link rel="prev" href="../STM32定时器/DMA输出PWM控制WS2812.html" />
    

    </head>
    <body>
         

<div class="book">
  <div class="header-inner">
    <!-- LOGO -->
    <div class="logo"></div>
    <span class="title"></span>

    <!-- Search -->
    
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>


    <!-- Nav -->
    <ul class="header-nav">
      <li>
        <a href="https://Gitee.com/atonidas" target="_blank">Gitee</a>
      </li>
    </ul>
  </div>

  <div class="book-summary">
    <div class="book-summary-title">文档目录</div>
     
    <nav role="navigation">


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../软件环境/">
            
                <a href="../软件环境/">
            
                    
                    软件环境
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../软件环境/VScode的使用.html">
            
                <a href="../软件环境/VScode的使用.html">
            
                    
                    VScode快速入门
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../软件环境/VSCode插件分享.html">
            
                <a href="../软件环境/VSCode插件分享.html">
            
                    
                    VScode插件分享
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="../软件环境/CubeMX简介.html">
            
                <a href="../软件环境/CubeMX简介.html">
            
                    
                    CubeMX简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="../软件环境/创建一个工程.html">
            
                <a href="../软件环境/创建一个工程.html">
            
                    
                    创建一个工程
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.5" data-path="../软件环境/Git版本管理.html">
            
                <a href="../软件环境/Git版本管理.html">
            
                    
                    Git版本管理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.6" data-path="../软件环境/创建一个快速开发模板.html">
            
                <a href="../软件环境/创建一个快速开发模板.html">
            
                    
                    创建一个快速开发模板
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../STM32的IO口/">
            
                <a href="../STM32的IO口/">
            
                    
                    STM32的IO口
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../STM32的IO口/点亮一个LED.html">
            
                <a href="../STM32的IO口/点亮一个LED.html">
            
                    
                    点亮一个LED
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../STM32的IO口/使用独立按键.html">
            
                <a href="../STM32的IO口/使用独立按键.html">
            
                    
                    使用独立按键
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../STM32中断/">
            
                <a href="../STM32中断/">
            
                    
                    STM32中断
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../STM32中断/CubeMX外部中断配置.html">
            
                <a href="../STM32中断/CubeMX外部中断配置.html">
            
                    
                    CubeMX外部中断配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../STM32中断/HAL库外部中断程序.html">
            
                <a href="../STM32中断/HAL库外部中断程序.html">
            
                    
                    HAL库外部中断程序
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../STM32定时器/">
            
                <a href="../STM32定时器/">
            
                    
                    STM32定时器
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="../STM32定时器/定时器简单中断程序.html">
            
                <a href="../STM32定时器/定时器简单中断程序.html">
            
                    
                    定时器简单中断程序
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="../STM32定时器/硬件PWM输出.html">
            
                <a href="../STM32定时器/硬件PWM输出.html">
            
                    
                    硬件PWM输出
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="../STM32定时器/DMA输出PWM控制WS2812.html">
            
                <a href="../STM32定时器/DMA输出PWM控制WS2812.html">
            
                    
                    DMA输出PWM控制WS2812
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter active" data-level="1.6" data-path="./">
            
                <a href="./">
            
                    
                    STM32串口
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="串口发送及中断接收.html">
            
                <a href="串口发送及中断接收.html">
            
                    
                    串口发送及中断接收
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="串口的格式化输出.html">
            
                <a href="串口的格式化输出.html">
            
                    
                    串口的格式化输出
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="串口DMA传输.html">
            
                <a href="串口DMA传输.html">
            
                    
                    串口DMA传输
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.4" data-path="简单协议编写.html">
            
                <a href="简单协议编写.html">
            
                    
                    简单协议编写
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../SPI协议/">
            
                <a href="../SPI协议/">
            
                    
                    SPI协议
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="../SPI协议/CubeMX配置及主要函数.html">
            
                <a href="../SPI协议/CubeMX配置及主要函数.html">
            
                    
                    CubeMX配置及主要参数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="../SPI协议/OLED驱动移植.html">
            
                <a href="../SPI协议/OLED驱动移植.html">
            
                    
                    OLED驱动移植
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3" data-path="../SPI协议/LVGL移植显示.html">
            
                <a href="../SPI协议/LVGL移植显示.html">
            
                    
                    LVGL移植显示
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.4" data-path="../SPI协议/Flash的使用及文件系统.html">
            
                <a href="../SPI协议/Flash的使用及文件系统.html">
            
                    
                    Flash的使用及文件系统
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="../ADC的使用/">
            
                <a href="../ADC的使用/">
            
                    
                    ADC的使用
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.1" data-path="../ADC的使用/CubeMX中ADC配置概览.html">
            
                <a href="../ADC的使用/CubeMX中ADC配置概览.html">
            
                    
                    CubeMX中ADC配置概览
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.2" data-path="../ADC的使用/查询阻塞方式.html">
            
                <a href="../ADC的使用/查询阻塞方式.html">
            
                    
                    查询阻塞方式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3" data-path="../ADC的使用/中断方式.html">
            
                <a href="../ADC的使用/中断方式.html">
            
                    
                    中断方式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.4" data-path="../ADC的使用/DMA方式.html">
            
                <a href="../ADC的使用/DMA方式.html">
            
                    
                    DMA方式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.5" data-path="../ADC的使用/应用示例.html">
            
                <a href="../ADC的使用/应用示例.html">
            
                    
                    应用示例
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="../其他代码整合搬运/">
            
                <a href="../其他代码整合搬运/">
            
                    
                    其他代码整合搬运
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.1" data-path="../其他代码整合搬运/MultiButton.html">
            
                <a href="../其他代码整合搬运/MultiButton.html">
            
                    
                    MultiButton
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.2" data-path="../其他代码整合搬运/EasyLogger.html">
            
                <a href="../其他代码整合搬运/EasyLogger.html">
            
                    
                    EasyLogger
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.3" data-path="../其他代码整合搬运/letter-shell.html">
            
                <a href="../其他代码整合搬运/letter-shell.html">
            
                    
                    letter-shell
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.4" data-path="../其他代码整合搬运/EasyFlash.html">
            
                <a href="../其他代码整合搬运/EasyFlash.html">
            
                    
                    EasyFlash
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.5" data-path="../其他代码整合搬运/时间片调度.html">
            
                <a href="../其他代码整合搬运/时间片调度.html">
            
                    
                    时间片调度
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="../加入我们/">
            
                <a href="../加入我们/">
            
                    
                    加入我们
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.10.1" data-path="../加入我们/Gitbook环境.html">
            
                <a href="../加入我们/Gitbook环境.html">
            
                    
                    Gitbook环境
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.2" data-path="../加入我们/Markdown语法简介.html">
            
                <a href="../加入我们/Markdown语法简介.html">
            
                    
                    Markdown语法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.3" data-path="../加入我们/编辑器推荐.html">
            
                <a href="../加入我们/编辑器推荐.html">
            
                    
                    编辑器推荐
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.4" data-path="../加入我们/工程文件说明.html">
            
                <a href="../加入我们/工程文件说明.html">
            
                    
                    工程文件说明
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.5" data-path="../加入我们/提交注意事项.html">
            
                <a href="../加入我们/提交注意事项.html">
            
                    
                    提交注意事项
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>

</nav>
     
  </div>

  <!-- Content nav -->
  <div class="book-anchor">
    <div class="book-anchor-title"></div>

    <div class="book-anchor-body"></div>
  </div>

  <div class="book-body">
    
    <div class="body-inner">
       

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >STM32串口</a>
    </h1>
</div>



      <div class="page-wrapper" tabindex="-1" role="main">
        <div class="page-inner">
          
<div id="book-search-results">
    <div class="search-noresults">
    
          <section class="normal markdown-section">
             <p><span id="hidden-autonumber"></span></p>
<h1 class="article-title" id="stm32&#x4E32;&#x53E3;">STM32&#x4E32;&#x53E3;</h1>

<h1 id="uart">Uart</h1>
<blockquote>
<p>&#x4E32;&#x53E3;&#x901A;&#x4FE1;&#x662F;&#x5D4C;&#x5165;&#x5F0F;&#x5355;&#x7247;&#x673A;&#x5E38;&#x7528;&#x7684;&#x4E00;&#x79CD;&#x5F02;&#x6B65;&#x4E32;&#x884C;&#x901A;&#x4FE1;&#x65B9;&#x5F0F;&#xFF0C;&#x6240;&#x8C13;&#x4E32;&#x884C;&#x662F;&#x6307;&#x5176;&#x6570;&#x636E;&#x5E27;&#x662F;&#x4EE5;&#x5148;&#x540E;&#x987A;&#x5E8F;&#x4EE5;bit&#x4E3A;&#x5355;&#x4F4D;&#x53D1;&#x9001;&#xFF0C;&#x63A5;&#x6536;&#x540E;&#x8981;&#x6839;&#x636E;&#x6536;&#x5230;&#x7684;bit&#x6570;&#x636E;&#x91CD;&#x7EC4;&#x51FA;&#x539F;&#x59CB;&#x4FE1;&#x606F;&#x3002;&#x56E0;&#x4E3A;&#x4E32;&#x53E3;&#x901A;&#x5E38;&#x4F7F;&#x7528;&#x5F02;&#x6B65;&#x901A;&#x4FE1;&#x7684;&#x65B9;&#x5F0F;&#xFF0C;&#x901A;&#x4FE1;&#x8FC7;&#x7A0B;&#x4E2D;&#x6CA1;&#x6709;&#x65F6;&#x949F;&#x7EBF;&#x7684;&#x53C2;&#x4E0E;&#xFF0C;&#x6240;&#x4EE5;&#x53D1;&#x9001;&#x63A5;&#x6536;&#x53CC;&#x65B9;&#x9700;&#x63D0;&#x524D;<strong>&#x201C;&#x7EA6;&#x5B9A;&#x901A;&#x4FE1;&#x5FEB;&#x6162;&#x548C;&#x76F8;&#x5E94;&#x6807;&#x5FD7;&#x201D;</strong>&#xFF0C;&#x672C;&#x7AE0;&#x5C06;&#x5BF9;&#x4E32;&#x53E3;&#x7684;&#x914D;&#x7F6E;&#x548C;&#x4F7F;&#x7528;&#x505A;&#x4E00;&#x4E9B;&#x7B80;&#x5355;&#x8BB2;&#x89E3;&#x3002;</p>
</blockquote>
<h2 id="&#x540C;&#x6B65;&#x901A;&#x4FE1;&#x53CA;&#x5F02;&#x6B65;&#x901A;&#x4FE1;">&#x540C;&#x6B65;&#x901A;&#x4FE1;&#x53CA;&#x5F02;&#x6B65;&#x901A;&#x4FE1;</h2>
<p>&#x540C;&#x6B65;&#x901A;&#x4FE1;&#x901A;&#x5E38;&#x901A;&#x8FC7;&#x65F6;&#x949F;&#x7EBF;&#x7684;&#x8FB9;&#x6CBF;&#x68C0;&#x6D4B;&#x4FE1;&#x53F7;&#xFF0C;&#x56E0;&#x6B64;&#x540C;&#x6B65;&#x901A;&#x4FE1;&#x9700;&#x8981;&#x65F6;&#x949F;&#x7EBF;&#x7684;&#x53C2;&#x4E0E;&#x4EE5;&#x4FDD;&#x6301;&#x901A;&#x4FE1;&#x53CC;&#x65B9;&#x7684;&#x65F6;&#x949F;&#x540C;&#x6B65;&#xFF08;&#x5982;SPI, IIC&#xFF09;&#xFF0C;&#x8FD9;&#x91CC;&#x7684;&#x540C;&#x6B65;&#x4E0D;&#x4EC5;&#x5305;&#x62EC;&#x901A;&#x4FE1;&#x901F;&#x7387;&#x7684;&#x540C;&#x6B65;&#xFF0C;&#x4E5F;&#x5305;&#x62EC;&#x65F6;&#x949F;&#x76F8;&#x4F4D;&#xFF08;&#x4E0A;&#x5347;/&#x4E0B;&#x964D;&#x6CBF;&#x4F4D;&#x7F6E;&#xFF09;&#x540C;&#x6B65;&#x3002;&#x540C;&#x6B65;&#x901A;&#x4FE1;&#x901A;&#x5E38;&#x7528;&#x4E8E;&#x5904;&#x7406;&#x5927;&#x91CF;&#x3001;&#x8FDE;&#x7EED;&#x7684;&#x6570;&#x636E;&#x3002;</p>
<p>&#x800C;&#x5F02;&#x6B65;&#x901A;&#x4FE1;&#x5E76;&#x4E0D;&#x662F;&#x901A;&#x8FC7;&#x65F6;&#x949F;&#x8FB9;&#x6CBF;&#x68C0;&#x6D4B;&#x4FE1;&#x53F7;&#xFF0C;&#x5176;&#x4E5F;&#x6CA1;&#x6709;&#x65F6;&#x949F;&#x7EBF;&#x3002;&#x56E0;&#x6B64;&#x53D1;&#x9001;&#x65F6;&#x901A;&#x5E38;&#x4F1A;&#x6709;&#x4E00;&#x4E2A;&#x6807;&#x5FD7;&#x544A;&#x8BC9;&#x63A5;&#x6536;&#x673A;&#x4FE1;&#x606F;&#x5F00;&#x59CB;&#x4F20;&#x8F93;&#xFF0C;&#x7136;&#x540E;&#x63A5;&#x6536;&#x673A;&#x4FBF;&#x6839;&#x636E;&#x7EA6;&#x5B9A;&#x597D;&#x7684;<strong>&#x5355;&#x5E27;&#x683C;&#x5F0F;</strong>&#x63A5;&#x6536;&#x6570;&#x636E;&#xFF0C;&#x6B63;&#x56E0;&#x5982;&#x6B64;&#xFF0C;&#x5F02;&#x6B65;&#x901A;&#x4FE1;&#x4E0D;&#x9700;&#x8981;&#x6709;&#x7279;&#x5B9A;&#x7684;&#x5F00;&#x59CB;&#x65F6;&#x95F4;&#x548C;&#x95F4;&#x9694;&#x65F6;&#x95F4;&#xFF0C;&#x53EF;&#x4EE5;<strong>&#x5728;&#x4EFB;&#x610F;&#x65F6;&#x95F4;</strong>&#x53D1;&#x9001;&#x4FE1;&#x606F;&#x3002;&#x5F02;&#x6B65;&#x901A;&#x4FE1;&#x901A;&#x5E38;&#x7528;&#x4E8E;&#x5904;&#x7406;&#x5C11;&#x91CF;&#x3001;&#x4E0D;&#x8FDE;&#x7EED;&#x7684;&#x6570;&#x636E;&#x3002;</p>
<table>
<thead>
<tr>
<th style="text-align:center">&#x540C;&#x6B65;&#x901A;&#x4FE1;</th>
<th style="text-align:center">&#x5F02;&#x6B65;&#x901A;&#x4FE1;</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:center">&#x6709;&#x65F6;&#x949F;&#x7EBF;&#xFF0C;&#x65F6;&#x5E8F;&#x8981;&#x6C42;&#x4E25;&#x683C;</td>
<td style="text-align:center">&#x65E0;&#x65F6;&#x949F;&#x7EBF;&#xFF0C;&#x65F6;&#x5E8F;&#x8981;&#x6C42;&#x8F83;&#x5BBD;&#x677E;</td>
</tr>
<tr>
<td style="text-align:center">&#x901A;&#x4FE1;&#x6548;&#x7387;&#x9AD8;</td>
<td style="text-align:center">&#x901A;&#x4FE1;&#x6548;&#x7387;&#x8F83;&#x4F4E;</td>
</tr>
<tr>
<td style="text-align:center">&#x901A;&#x5E38;&#x7528;&#x4E8E;&#x8FDE;&#x7EED;&#x3001;&#x5927;&#x91CF;&#x6570;&#x636E;</td>
<td style="text-align:center">&#x901A;&#x5E38;&#x7528;&#x4E8E;&#x95F4;&#x65AD;&#x3001;&#x5C11;&#x91CF;&#x6570;&#x636E;</td>
</tr>
<tr>
<td style="text-align:center">&#x53EF;&#x7528;&#x4E8E;&#x70B9;&#x5BF9;&#x591A;&#x70B9;</td>
<td style="text-align:center">&#x53EA;&#x9002;&#x7528;&#x4E8E;&#x70B9;&#x5BF9;&#x70B9;</td>
</tr>
</tbody>
</table>
<h2 id="&#x4E32;&#x53E3;&#x901A;&#x4FE1;&#x7684;&#x51E0;&#x4E2A;&#x5173;&#x952E;&#x53C2;&#x6570;">&#x4E32;&#x53E3;&#x901A;&#x4FE1;&#x7684;&#x51E0;&#x4E2A;&#x5173;&#x952E;&#x53C2;&#x6570;</h2>
<h3 id="&#x6CE2;&#x7279;&#x7387;">&#x6CE2;&#x7279;&#x7387;</h3>
<p>&#x901A;&#x4FE1;&#x7684;&#x4E24;&#x4E2A;&#x8BBE;&#x5907;&#x7684;&#x6CE2;&#x7279;&#x7387;&#x9700;&#x8981;&#x8BBE;&#x7F6E;&#x76F8;&#x540C;&#xFF0C;&#x4E32;&#x53E3;&#x901A;&#x4FE1;&#x65F6;&#x5404;&#x4E2A;bit&#x4F4D;&#x7684;&#x89E3;&#x6790;&#x662F;&#x6839;&#x636E;&#x9884;&#x8BBE;&#x6CE2;&#x7279;&#x7387;&#x89E3;&#x6790;&#x7684;&#xFF0C;&#x6CE2;&#x7279;&#x7387;&#x4E0D;&#x5339;&#x914D;&#x4F1A;&#x5BFC;&#x81F4;&#x63A5;&#x6536;&#x4E71;&#x7801;&#x3002;&#x5E38;&#x7528;&#x7684;&#x6CE2;&#x7279;&#x7387;&#x4E3A;115200&#x548C;9600&#xFF0C;&#x5728;CubeMX&#x4E2D;&#x4E5F;&#x53EF;&#x4EE5;&#x914D;&#x7F6E;&#x4EFB;&#x610F;&#x6570;&#x7684;&#x6CE2;&#x7279;&#x7387;&#x3002;</p>
<h3 id="&#x6570;&#x636E;&#x957F;&#x5EA6;">&#x6570;&#x636E;&#x957F;&#x5EA6;</h3>
<p>&#x901A;&#x5E38;&#x53EF;&#x4EE5;&#x8BBE;&#x7F6E;&#x4E3A;9&#x4F4D;&#x548C;8&#x4F4D;&#x6570;&#x636E;&#x957F;&#x5EA6;&#xFF0C;&#x5176;&#x4E2D;&#x6700;&#x540E;&#x4E00;&#x4F4D;&#x4E3A;&#x6821;&#x9A8C;&#x4F4D;&#xFF0C;&#x5728;&#x4F7F;&#x7528;8&#x4F4D;&#x957F;&#x5EA6;&#x65F6;&#xFF0C;&#x5B9E;&#x9645;&#x6570;&#x636E;&#x8303;&#x56F4;&#xFF1A;0 ~ 127&#xFF0C;&#x80FD;&#x5305;&#x542B;&#x6240;&#x6709;ASCII&#x7801;&#xFF0C;&#x6B63;&#x56E0;&#x5982;&#x6B64;&#xFF0C;&#x901A;&#x5E38;&#x4E32;&#x53E3;&#x53D1;&#x9001;&#x65F6;&#x7684;&#x6700;&#x5C0F;&#x5355;&#x4F4D;&#x662F;<strong>&#x4E00;&#x4E2A;&#x5B57;&#x7B26;</strong></p>
<h3 id="&#x6821;&#x9A8C;&#x4F4D;">&#x6821;&#x9A8C;&#x4F4D;</h3>
<p>&#x5982;&#x4E0A;&#x6240;&#x8BF4;&#xFF0C;&#x4E32;&#x53E3;&#x53EF;&#x4EE5;&#x81EA;&#x5E26;&#x5947;&#x5076;&#x6821;&#x9A8C;&#x529F;&#x80FD;&#xFF0C;&#x539F;&#x7406;&#x4E3A;&#x901A;&#x8FC7;&#x6700;&#x540E;&#x8BBE;&#x7F6E;&#x6700;&#x540E;&#x4E00;&#x4E2A;bit&#x4F4D;&#xFF0C;&#x4FDD;&#x8BC1;&#x6570;&#x636E;&#x5E27;&#x6574;&#x4F53;&#x548C;&#x4E3A;&#x5947;&#x6570;/&#x5076;&#x6570;&#xFF0C;&#x5982;&#x679C;&#x63A5;&#x6536;&#x5230;&#x7684;&#x4E0D;&#x662F;&#x5BF9;&#x5E94;&#x8BBE;&#x7F6E;&#x7684;&#x5947;&#x6570;/&#x5076;&#x6570;&#xFF0C;&#x5219;&#x8BF4;&#x660E;&#x6570;&#x636E;&#x51FA;&#x9519;</p>
<h3 id="&#x505C;&#x6B62;&#x4F4D;&#x957F;&#x5EA6;">&#x505C;&#x6B62;&#x4F4D;&#x957F;&#x5EA6;</h3>
<p>&#x9ED8;&#x8BA4;&#x8BBE;&#x7F6E;&#x4E3A;1bit&#x7684;&#x9AD8;&#x7535;&#x5E73;&#xFF0C;&#x548C;&#x5F00;&#x59CB;&#x4F4D;&#x76F8;&#x53CD;&#xFF0C;&#x4EE5;&#x4EE3;&#x8868;&#x8FD9;&#x4E00;&#x5E27;&#x6570;&#x636E;&#x5B8C;&#x6BD5;</p>
<h2 id="&#x6559;&#x7A0B;&#x5206;&#x5E03;">&#x6559;&#x7A0B;&#x5206;&#x5E03;</h2>
<ul>
<li><a href="&#x4E32;&#x53E3;&#x53D1;&#x9001;&#x53CA;&#x4E2D;&#x65AD;&#x63A5;&#x6536;.html">&#x4E32;&#x53E3;&#x53D1;&#x9001;&#x53CA;&#x4E2D;&#x65AD;&#x63A5;&#x6536;</a></li>
<li><a href="&#x4E32;&#x53E3;&#x7684;&#x683C;&#x5F0F;&#x5316;&#x8F93;&#x51FA;.html">&#x4E32;&#x53E3;&#x7684;&#x683C;&#x5F0F;&#x5316;&#x8F93;&#x51FA;</a></li>
<li><a href="&#x4E32;&#x53E3;DMA&#x4F20;&#x8F93;.html">&#x4E32;&#x53E3;DMA&#x4F20;&#x8F93;</a></li>
<li><a href="&#x7B80;&#x5355;&#x534F;&#x8BAE;&#x7F16;&#x5199;.html">&#x7B80;&#x5355;&#x534F;&#x8BAE;&#x7F16;&#x5199;</a></li>
</ul>
 
          </section>
          
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>
 
        </div>
      </div>
      
    </div>

     
    <a
      href="../STM32定时器/DMA输出PWM控制WS2812.html"
      class="
        navigation navigation-prev
        
      "
      aria-label="Previous page: DMA输出PWM控制WS2812"
    >
      <i class="fa fa-angle-left"></i>
    </a>
     
    <a
      href="串口发送及中断接收.html"
      class="
        navigation navigation-next
        
      "
      aria-label="Next page: 串口发送及中断接收"
    >
      <i class="fa fa-angle-right"></i>
    </a>
      
  </div>
  <script>
    function showModal() {
      document.getElementsByClassName("mask")[0].style.display = "block";
      document.getElementsByClassName("donate-modal")[0].style.display =
        "block";
    }
    // 切换赞赏码
    function showDonateImg(num) {
      let alipay = "";
      let wxpay = ""
      if(num){
        wxpay = "hidden"
      }else{
        alipay = "hidden"
      }
      document.getElementById("wxpay-code").hidden = wxpay;
      document.getElementById("alipay-code").hidden = alipay;
      document.getElementsByName("pay-way")[num].checked = "checked";
    }

    // 关闭赞赏框
    function closeDonateModal() {
      document.getElementsByClassName("mask")[0].style.display = "none";
      document.getElementsByClassName("donate-modal")[0].style.display = "none";
    }

    var gitbook = gitbook || [];
    gitbook.push(function () {
      gitbook.page.hasChanged({"page":{"title":"STM32串口","level":"1.6","depth":1,"next":{"title":"串口发送及中断接收","level":"1.6.1","depth":2,"path":"STM32串口/串口发送及中断接收.md","ref":"./STM32串口/串口发送及中断接收.md","articles":[]},"previous":{"title":"DMA输出PWM控制WS2812","level":"1.5.3","depth":2,"path":"STM32定时器/DMA输出PWM控制WS2812.md","ref":"./STM32定时器/DMA输出PWM控制WS2812.md","articles":[]},"dir":"ltr"},"config":{"plugins":["-lunr","-sharing","-search","-favicon","-code","expandable-chapters","theme-lou","back-to-top-button","search-pro","livereload"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"livereload":{},"search-pro":{},"code":{"copyButtons":true},"theme-lou":{"hide-elements":[".summary .gitbook-link"],"color":"#8abcd1","copyright":{"author":"Atonidas"},"forbidCopy":false,"logo":"assets/logo.png","search-placeholder":"查找关键内容","copyrightLogo":"assets/copyright.png","favicon":"assets/favicon.ico","autoNumber":3},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"back-to-top-button":{},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"theme":"default","author":"Atonidas","lang":"zh-cn","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{"themeLou":{"nav":[{"target":"_blank","url":"https://Gitee.com/atonidas","name":"Gitee"}]}},"title":"STM32HAL系列教程","gitbook":"*","description":"Gitbook电子书示例项目"},"file":{"path":"STM32串口/README.md","mtime":"2023-04-04T06:18:13.062Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2023-09-13T00:50:24.020Z"},"basePath":"..","book":{"language":""}});
    });
  </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-back-to-top-button/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-pro/jquery.mark.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-pro/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-theme-lou/lou.js"></script>
        
    

    </body>
</html>

